<?php

for ($j = 0; $j <= 5; $j++)
{

  for ($i = 0; $i <= $j ; $i++)
  {

    echo "*";

  }

  echo "\n";

}
